package com.waitingresult.demo.controller;

import com.waitingresult.common.base.model.Result;
import com.waitingresult.demo.service.StarCardBookService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("book")
public class StarCardBookController {
    @Resource
    private StarCardBookService starCardBookService;

    @PostMapping("index")
    public Result<Object> index() {
        return Result.success("ok", starCardBookService.list());
    }

    @PostMapping("select")
    public Result<Object> select() {
        return Result.success("ok");
    }

    @PostMapping("get")
    public Result<Object> get() {
        return Result.success("ok");
    }

    @PostMapping("add")
    public Result<Object> add() {
        return Result.success("ok");
    }

    @PostMapping("edit")
    public Result<Object> edit() {
        return Result.success("ok");
    }

    @PostMapping("delete")
    public Result<Object> delete() {
        return Result.success("ok");
    }
}
